﻿using System.Windows.Input;
namespace ClassMetadataBrowser.UI
{
	public class CustomCommands
	{
		private static RoutedUICommand _exitCommand;
		private static RoutedUICommand _enterCommand;

		static CustomCommands()
		{
			InputGestureCollection exitIg = new InputGestureCollection();
			exitIg.Add(new KeyGesture(Key.Escape));
			_exitCommand = new RoutedUICommand("Close", "ExitCommand", typeof(CustomCommands), exitIg);

			InputGestureCollection enterIg = new InputGestureCollection();
			enterIg.Add(new KeyGesture(Key.Enter));
			_enterCommand = new RoutedUICommand("Select", "SelectCommand", typeof(CustomCommands), enterIg);
		}

		public static RoutedUICommand EnterCommand
		{
			get { return _enterCommand; }
		}

		public static RoutedUICommand ExitCommand
		{
			get { return _exitCommand; }
		}
	}
}
